import * as React from 'react';
import { Button, View } from 'react-native';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { NavigationContainer } from '@react-navigation/native';
import Main from './Main'
import Login from './Login'
import Information from './Information'

let Drawer = createDrawerNavigator();

export default function App() {
    return (
        <NavigationContainer>
            <Drawer.Navigator initialRouteName="Home">
                <Drawer.Screen name="用户登录" component={Login}/>
                <Drawer.Screen name="用户中心" component={Main} />
                <Drawer.Screen name="用户信息" component={Information}/>
            </Drawer.Navigator>
        </NavigationContainer>
    );
}